/// 预设备注信息
class DefaultRemarkEntity {
  /// 主键id
  final int? id;
  /// 备注类型：1-核销备注，2-财务备注
  final int? remarkType;
  /// 中文备注内容
  final String? remarkZh;
  /// 英文备注内容
  final String? remarkEn;
  /// 创建时间
  final String? createTime;
  /// 创建人
  final String? createBy;
  /// 数据状态（1-有效，0-无效）
  final int? status;

  DefaultRemarkEntity({
    this.id,
    this.remarkType,
    this.remarkZh,
    this.remarkEn,
    this.createTime,
    this.createBy,
    this.status,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (id != null) data['id'] = id;
    if (remarkType != null) data['remarkType'] = remarkType;
    if (remarkZh != null) data['remarkZh'] = remarkZh;
    if (remarkEn != null) data['remarkEn'] = remarkEn;
    if (createTime != null) data['createTime'] = createTime;
    if (createBy != null) data['createBy'] = createBy;
    if (status != null) data['status'] = status;
    return data;
  }

  factory DefaultRemarkEntity.fromJson(Map<String, dynamic> json) {
    return DefaultRemarkEntity(
      id: json['id'],
      remarkType: json['remarkType'],
      remarkZh: json['remarkZh'],
      remarkEn: json['remarkEn'],
      createTime: json['createTime'],
      createBy: json['createBy'],
      status: json['status'],
    );
  }
}